package com.devops.admin.model;

import lombok.Data;
import java.util.List;
import java.util.Map;
import java.util.Set;

@Data
public class IntrospectResponse {

    private Integer exp;
    private Integer iat;
    private Integer authTime;
    private String jti;
    private String iss;
    private String aud;
    private String sub;
    private String typ;
    private String azp;
    private String sessionState;
    private String name;
    private String givenName;
    private String familyName;
    private String preferredUsername;
    private String email;
    private Boolean emailVerified;
    private String acr;
    private List<String> allowedOrigins;
    private RealmAccess realmAccess;
    private Map<String, Account> resourceAccess;
    private String scope;
    private String sid;
    private String clientId;
    private String username;
    private Boolean active;

    @Data
    public static class RealmAccess {
        private Set<String> roles;
    }

    @Data
    public static class Account {
        private Set<String> roles;
    }
}